from random import randint as rnd
N=int(input())
count=0
for i in range (N):
    x=rnd(-100,100)
    y= rnd(-100,100)
    if x>=-7 and x<=5 and y>=-8 and y<=5:
        count=count+1
print("Количество выстрелов:",N)
print("Количество попаданий:", count)